using System;

public class ReturnValue
{
    public static void Kind()
    {
        string[] dateStrings = {"5/1/2008 7:34:42",
                              "2008-05-01T07:34:42-5:00",
                              "2008-05-01 7:34:42Z",
                              "Thu, 01 May 2008 07:34:42 GMT"};

        foreach (string dateString in dateStrings)
        {
            DateTime convertedDate = DateTime.Parse(dateString);
            Console.WriteLine($"Converted {dateString} to {convertedDate.Kind} time {convertedDate}");
        }
    }
}

// These calls to the DateTime.Parse method display the following output:
//  Converted 2008-05-01T07:34:42-5:00 to Local time 5/1/2008 5:34:42 AM
//  Converted 2008-05-01 7:34:42Z to Local time 5/1/2008 12:34:42 AM
//  Converted Thu, 01 May 2008 07:34:42 GMT to Local time 5/1/2008 12:34:42 AM